﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Comm;
using System.Collections.Generic;

public partial class _admin_main : AdminPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadData();
        }
    }

    /// <summary>
    /// 加载数据
    /// </summary>
    private void loadData()
    {
        //string dt = DateTime.Now.ToString("yyyy-MM-dd");
        ////管理员数
        //lit_admin.Text = "<a href=\"admin/admin_list.aspx\">" + new BLL.Admin().Count().ToString() + "</a>";
        //lit_article.Text = "<a href=\"article/article_list.aspx\">" + new BLL.TB_Article().Count("") + "&nbsp;(<span>今" + new BLL.TB_Article().Count("AddTime>='" + dt + "'") + "</span>)</a>";
        //lit_singlepage.Text = "<a href=\"siteinfo/seo_list.aspx\">" + new BLL.TB_Singlepage().Count("") + "</a>";
        //lit_product.Text = "<a href=\"product/product_list.aspx\">" + new BLL.TB_Product().Count("") + "&nbsp;(<span>今" + new BLL.TB_Product().Count("AddTime>='" + dt + "'") + "</span>)</a>";
        //lit_advertising.Text = "<a href=\"advertising/advertising_list.aspx\">"+new BLL.TB_Advertising().Count("")+"</a>";
        //lit_leaveword.Text = "<a href=\"leaveword/leaveword_list.aspx\">" + new BLL.TB_Leaveword().Count("") + "&nbsp;(<span>今" + new BLL.TB_Leaveword().Count("AddTime>='" + dt + "'") +"</span>)</a>";
        //lit_download.Text = "<a href=\"download/download_list.aspx\">" + new BLL.TB_Download().Count("") + "&nbsp;(<span>今" + new BLL.TB_Download().Count("AddTime>='" + dt + "'") + "</span>)</a>";
        //lit_job.Text = "<a href=\"job/job_list.aspx\">" + new BLL.TB_Job().Count("") + "&nbsp;(<span>今" + new BLL.TB_Job().Count("AddTime>='" + dt + "'") + "</span>)</a>";
        //lit_qa.Text = "<a>" + new BLL.TB_QA().Count("") + "&nbsp;(<span>今" + new BLL.TB_QA().Count("AddTime>='" + dt + "'") + "</span>)</a>";
    }
}
